import xmlrpclib

user = 'user'
passwd = '123'

server = xmlrpclib.Server('http://%s:%s@localhost:9001/RPC2' % (user, passwd))

print server.supervisor.getState()

print server.system.listMethods()

print server.supervisor.getProcessInfo('mongod')

print server.supervisor.readProcessStdoutLog('mongod', 0, 0)
